package com.xjoyt.pay.operater.auth.interfaces;

import java.util.List;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.xjoyt.pay.dto.ExecuteResult;

public interface CompanyContract {

	/**
	 * 获取机构权限
	 * 
	 * @param id
	 * @return
	 */
	@RequestMapping("getNodeList/{id}")
	List<String> getNodeList(@PathVariable("id") String id);

	/**
	 * 设置机构权限
	 * 
	 * @param id
	 * @param nodeList
	 * @return
	 */
	@RequestMapping(value = "saveNode/{id}", method = RequestMethod.POST)
	ExecuteResult<?> saveNode(@PathVariable("id") String id, List<String> nodeList);
}
